package com.mutual.reins.interf.controller;

import com.mutual.reins.interf.service.*;
import com.mutual.reinsapi.entity.ReinsPolicyInterfDtoVo;
import com.mutual.reinsapi.entity.ReinsStatusDtoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @author panchen
 */
@Api("投保单调用接口")
@RestController
@RequestMapping("/reins")
public class ReinsPolicyController {

    @Autowired
    private IGeneratePrptDangerUnitService iGeneratePrptDangerUnitService;

    @ApiOperation("投保单生成危险单位接口")
    @PostMapping("/savePrptDangerUnit")
    public ReinsStatusDtoVo savePrptDangerUnit(@RequestBody ReinsPolicyInterfDtoVo reinsPolicyInterfDtoVo) throws InstantiationException, IllegalAccessException {
        return iGeneratePrptDangerUnitService.generatePrptDangerUnit(reinsPolicyInterfDtoVo);

    }


}
